#ifndef SEARCH_H
#define SEARCH_H

#include <QWidget>
#include <QTcpSocket>
#include <QUdpSocket>
#include <QString>
#include <QTimer>
#include <QJsonDocument>
#include <QJsonObject>
#include <QByteArray>
#include <QMessageBox>
#define stylesheet1 "QRadioButton#m_link:checked{\
    border: 2px solid red; \
                    }"
namespace Ui {
class Search;
}

class Search : public QWidget
{
    Q_OBJECT

public:
    explicit Search(QWidget *parent = 0);
    ~Search();

private slots:
    void on_m_search_clicked();
    void dataSlots();
    void hartTimerSlot();
    void on_m_button_start_clicked();
    void on_m_button_stop_clicked();
    void udpRecvSlot();

    void on_pushButton_clicked();

private:
    Ui::Search *ui;
    QTcpSocket *socket;
    QUdpSocket *m_socket;
    QTimer *timer;
    QString tcpip;
};

#endif // SEARCH_H
